<div id="com_geotrails_search_form" class="search-form">
	<?php if ($this->params->get('show_filter_activite')) { ?>
		<?php if (!$this->activityId) { ?>
			<fieldset>
				<legend><?php echo JText::_('COM_GEOTRAILS_GEOTRAILS_VIEW_CB_ACTIVITE'); ?></legend>
				<?php foreach ($this->search_form->getFieldsets('activite') as $fieldsets => $fieldset) { ?>
					<?php foreach($this->search_form->getFieldset($fieldset->name) as $field) { ?>
						<?php echo $field->input; ?>
						<?php echo $field->label; ?>
					<?php } ?>
				<?php } ?>
			</fieldset>
		<?php } else { ?>
			<?php for ($i=1; $i<13; $i++) { ?>
				<?php 
				$checked = ''; 
				
				if ($i == $this->activityId) {
					$checked = ' checked'; 
				}
				?>
				<input type="hidden" name="activite[activite]" id="activite<?php echo $i; ?>" value="<?php echo $i; ?>" <?php echo $checked; ?> />
			<?php }	?>
		<?php } ?>
	<?php } ?>
	<?php if ($this->params->get('show_filter_theme')) { ?>
	<fieldset>
		<legend><?php echo JText::_('COM_GEOTRAILS_GEOTRAILS_VIEW_CB_THEME'); ?></legend>
		<?php foreach ($this->search_form->getFieldsets('theme') as $fieldsets => $fieldset) { ?>
			<?php foreach($this->search_form->getFieldset($fieldset->name) as $field) { ?>
				<?php echo $field->input; ?>
				<?php echo $field->label; ?>
			<?php } ?>
		<?php } ?>
	</fieldset>
	<?php } ?>
	<?php if ($this->params->get('show_filter_difficulte')) { ?>
	<fieldset>
		<legend><?php echo JText::_('COM_GEOTRAILS_DIFFICULTY'); ?></legend>
		<?php foreach ($this->search_form->getFieldsets('difficulte') as $fieldsets => $fieldset) { ?>
			<?php foreach($this->search_form->getFieldset($fieldset->name) as $field) { ?>
				<?php echo $field->input; ?>
				<?php echo $field->label; ?>
			<?php } ?>
		<?php } ?>
	</fieldset>
	<?php } ?>	
	<input type="hidden" name="com_geotrails_view"   id="com_geotrails_view"   value="maps" />
	<input type="hidden" name="com_geotrails_itemid" id="com_geotrails_itemid" value="<?php echo $this->Itemid; ?>" />
</div>